package org.celery.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 店铺用户关联表实体类
 *
 * @author Celery
 * @since 2023-09-11
 */
@Data
@TableName("celery_shop_user")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ShopUser对象", description = "店铺用户关联表")
public class ShopUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 店铺id
     */
    @ApiModelProperty(value = "店铺id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long shopId;


}
